package meta.entity

import kotlinx.serialization.Serializable

@Serializable
class Station (override var id: String,
               override var name: String,
               override var code: String,
               override var parentId: String,
               override var children: MutableList<MetaTree>,
               override var parentPath: String) : MetaTree() {
    var voltageLevel:String = ""
    var industryCategory:String = ""
    var industryType:String = ""
    var population:Int = 0
    var area:Float = 100.0F
    var legalPerson:String = ""
    var contact:String = ""
    var dutyParagraph:String = ""
    var memo:String = ""
}

/** Factory 是未来协程的基础，用于互动 **/
class StationFactory (mt : MetaTree) : MetaMaster {
    override val entity: MetaTree = mt
}